from django.db import models

from utils.basemodel import BaseModel
from user.models import UserModel
from course.models import CourseModel


# Create your models here.

class CartModel(BaseModel):
    user = models.ForeignKey(to=UserModel, on_delete=models.CASCADE)
    course = models.ForeignKey(to=CourseModel, on_delete=models.CASCADE)
    select = models.BooleanField(default=True)

    class Meta:
        db_table = 'fgcart'
